//placeholder
	$(function(){
		if(!placeholderSupport()){
			$('[placeholder]').focus(function() {
				var input = $(this);
				if (input.val() == input.attr('placeholder')) {
					input.val('');
					input.removeClass('placeholder');
				}
			}).blur(function() {
				var input = $(this);
				if (input.val() == '' || input.val() == input.attr('placeholder')) {
					input.addClass('placeholder');
					input.val(input.attr('placeholder'));
				}
			}).blur();
		};
		})
		function placeholderSupport() {
			return 'placeholder' in document.createElement('input');
		}
		
//		模拟下拉菜单
		
	$(document).ready(function() {
	$(".select_box").click(function(event) {
		event.stopPropagation();
		$(this).find(".option").toggle();
		$(this).parent().siblings().find(".option").hide();
		$(".select_box").removeClass("on");
		
		$(this).addClass("on");

		
	});
	$(document).click(function(event) {
		var eo = $(event.target);
		if($(".select_box").is(":visible") && eo.attr("class") != "option" && !eo.parent(".option").length)
			$('.option').hide();
	})
	/*赋值给文本框*/
	var value = $(".select_box01 .option a").eq(0).text();
	$(".select_box01 .select_txt").text(value);
	var value2 = $(".select_box02 .option a").eq(0).text();
	$(".select_box02 .select_txt").text(value2);
	var value3 = $(".select_box03 .option a").eq(0).text();
	$(".select_box03 .select_txt").text(value3);
		var value4 = $(".select_box04 .option a").eq(0).text();
	$(".select_box04 .select_txt").text(value4);
	$(".option a").click(function() {
		value = $(this).text();
		$(this).parent().siblings(".select_txt").text(value);
		$("#select_value").val(value)
	})

        var d = new Date();
    var dayNew = parseInt(d.getDay());
    var xq;
    switch (dayNew) {
        case 1:
            xq = "一";
            break;
        case 2:
            xq = "二";
            break;
        case 3:
            xq = "三";
            break;
        case 4:
            xq = "四";
            break;
        case 5:
            xq = "五";
            break;
        case 6:
            xq = "六";
            break;
        case 7:
            xq = "日";
            break;
    }
    var shijian = '今天是：' + d.getFullYear() + '年' + (d.getMonth() + 1) + '月' + d.getDate() + '日' + ' 星期' + xq;
    $(".top_right span").html(shijian);

})